<template>
  <div>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" top="0">
      <span>{{ title }}</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose">取 消</el-button>
        <el-button type="primary" @click="confirm">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: "DelEte",
  components: {},
  data() {
    return {};
  },
  props: {
    dialogVisible: {
      type: Boolean,
      default: false,
    },
    title: {
      type: String,
      default: "",
    },
  },
  // watch
  methods: {
    confirm() {
      // this.props.dialogVisible = false;
      console.log("111");
      this.$emit("deleteConfirm", false);
    },
    handleClose() {
      this.$emit("handel", false);
    },
  },
  created() {},
  mounted() {},
};
</script>
<style lang="scss" scoped>
</style>
